package com.example.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Jm
 * @date 2024/7/12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user")
public class User
{
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    private String username;

    private String password;

    private String identity;

    private String role;

    private String phone;

    private String name;

    private String salt;

    private String address;

    private Integer status;

    @TableField(exist = false)
    private String token;

}
